package com.ant.backstage.service;


import com.ant.backstage.facade.ApiReturn;
import com.ant.backstage.facade.model.User;
import com.ant.backstage.facade.request.registerLogin.FindPwdRequst;
import com.ant.backstage.facade.request.registerLogin.UserRegisterRequest;

import java.util.List;
import java.util.Map;

public interface RegisterAndLoginService {

    //注册用户方法
    ApiReturn register(UserRegisterRequest user) throws Exception;
    //根据用户名查找用户
    User findByUsername(String uname);

   String generateJwt(Map<String, String> claims);

    void logout(String uid);

    User findByUid(String uid);

    User login(String uname, String pwd);

    List<String> findPermissionsByUid(String uid);

    ApiReturn findPwd(ApiReturn apiReturn, FindPwdRequst findPwdRequst);


}
